a2b2f7de2c4129dc432d1079f1a1d6e6d8556b10,src/test/java/graphql/annotations/DefaultTypeFunctionTest.java,DefaultTypeFunctionTest,optional,#,130
Before Change
@Test
public void optional() throws NoSuchMethodException {
DefaultTypeFunction instance = new DefaultTypeFunction();
graphql.schema.GraphQLType type = instance.apply(getClass().getMethod("optionalMethod").getReturnType(), (AnnotatedParameterizedType) getClass().getMethod("listMethod").getAnnotatedReturnType());
assertTrue(type instanceof GraphQLList);
GraphQLType subtype = ((GraphQLList) type).getWrappedType();
assertTrue(subtype instanceof graphql.schema.GraphQLNonNull);
After Change
@Test
public void optional() throws NoSuchMethodException {
DefaultTypeFunction instance = new DefaultTypeFunction();
graphql.schema.GraphQLType type = instance.apply(getClass().getMethod("optionalMethod").getReturnType(), getClass().getMethod("listMethod").getAnnotatedReturnType());
assertTrue(type instanceof GraphQLList);
GraphQLType subtype = ((GraphQLList) type).getWrappedType();
assertTrue(subtype instanceof graphql.schema.GraphQLNonNull);